package com.sandy.gorm6

import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.ApplicationArguments
import org.springframework.boot.ApplicationRunner
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.EnableAutoConfiguration
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.context.annotation.ComponentScan
import org.springframework.context.annotation.Configuration

@Configuration
@SpringBootApplication
class Gorm6Application implements ApplicationRunner {

    static void main(String[] args) {
        SpringApplication.run(Gorm6Application, args)
    }

    @Autowired
    BootStrap bootStrap

    void run(ApplicationArguments args) throws Exception {
        bootStrap.init()
    }
}
